#ifndef HTTPREQUESTTHREAD_H
#define HTTPREQUESTTHREAD_H


#include <QNetworkReply>
#include <QObject>
#include <QThread>
#include <QTimer>
#include <QEventLoop>
#include <QLinkedList>
#include <QNetworkCookieJar>
#include "wefuckcookiejar.h"


class QrCode;
class WeFuckCookieJar;

class HttpRequestThread: public QObject
{
    Q_OBJECT
public:
    static WeFuckCookieJar cookieJar;
    static QString skey;
    static QString wxsid;
    static QString wxuin;
    static QString pass_ticket;
    static QString isgrayscale;
    HttpRequestThread(QObject *parent = Q_NULLPTR);
    ~HttpRequestThread();

    QrCode *qrCode;

public slots:
    void getQrStatus();
    void getResponseForUuid(QNetworkReply *reply);
    void run();


private:
    QNetworkAccessManager manager;
};

#endif // HTTPREQUESTTHREAD_H
